package cn.tedu.lv;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class LvBu {

    private String name="吕奉先";
    @Autowired
    private Weapon weapon;

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Weapon getWeapon() {
        return weapon;
    }
    public void setWeapon(Weapon weapon) {
        this.weapon = weapon;
    }
    @Override
    public String toString() {
        return name+"使用"+weapon+"战斗";
    }
}
